package com.li.system.domain.sysuser.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SysUserSaveDTO {

    @Schema(description = "用户账号")
    @NotNull(message = "用户账号不能为空")
    private String userAccount;

    @Schema(description = "用户密码")
    @Size(min = 8, max = 20, message = "密码长度不能少于8位，不能大于20位")
    private String password;
}
